﻿using Furion.DatabaseAccessor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core.Base
{
    /// <summary>
    /// 基础过滤参数
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public abstract class BaseFilterParams<TEntity> where TEntity: IPrivateEntity
    {
        /// <summary>
        /// 获取过滤表达式
        /// </summary>
        /// <returns></returns>
        public virtual Expression<Func<TEntity, bool>> GetFilterExpression()
        {
            return x => true;
        }
    }
}
